PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-04-20 10:19:11.620671+00:00 (UTC)
In US/Central Time, this is 2024-04-20 05:19:11.620671-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/a938af79f3f8d51a0b8a144abfb82aacfdf95a3bae94e94fa61537513b7b5cde.png
We are just generating a random time serie here.
../../_images/abf2d764cc1bd013a09c89e58bf9176fbe5f72b82ed9e7b2d4e31a80fc5d4a54.png
../../_images/4427b9bfabfe919099a362acca102ad278f73f36924b48b91e4bd177c8131cf5.png